﻿using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using YXQ.Dao;
using YXQ.IService;
using   YXQ.Dao.ViewModel;
namespace YXQ.Service 

{

  public class  GCBService : IGCBService

    {


     GCBDao dao=new GCBDao();


    #region IGCBService 成员

   public List<Y_GCB> GetList(int startIndex, int maxRow, out int recordcount)
     {

       return dao.GetList(startIndex, maxRow,out recordcount);

     }


     #endregion


    #region IGCBService 成员

   public int Save(GCBModel obj)
     {

       return dao.Save(obj);

     }


     #endregion


   #region IGCBService 成员

   public GCBModel GetOneById(int id)
     {

        return dao.GetOneById(id);

     }


     #endregion

   #region IGCBService 成员
   public int DelById(int id)
     {

        return dao.DelById(id);

     }


     #endregion



   public GCBModel GetOneByProjectId(int id, int dt)
   {
       return dao.GetOneByProjectId(id,dt);
   }

   public GCBModel GetOneByProjectId(int id)
   {
       return dao.GetOneByProjectId(id);
   }


   public List<GCBModel> GetByProjectId(int id)
   {
       return dao.GetByProjectId(id);
   }
    }

 }

